﻿#region Header
// ------------------------ Licence / Copyright ------------------------
// 
// ScrumTable for Scrum Meeting Support
// Copyright © HSR - Hochschule für Technik Rapperswil
// All Rights Reserved
// 
// Author:
//  Michael Gfeller Silvan Gehrig Patrick Boos
// 
// ---------------------------------------------------------------------
#endregion

#region Usings

using System.Windows;
using ScrumTable.Common.Unity;
using ScrumTable.UI.ViewModel.Data;

#endregion

namespace ScrumTable.UI.View.WinTouch.UserControls
{
    /// <summary>
    /// Interaction logic for CurrentProjectIterationControl.xaml
    /// </summary>
    public partial class CurrentProjectIterationControl 
    {

        #region Properties


        #region StrokeBrush
        /// <summary>
        /// DependencyProperty for Title.
        /// </summary>
        public static readonly DependencyProperty TitleProperty =
            DependencyProperty.Register("Title",
                                        typeof(string),
                                        typeof(CurrentProjectIterationControl),
                                        new UIPropertyMetadata(string.Empty));
        /// <summary>
        /// Gets or sets the title of this control
        /// </summary>
        /// <value>title</value>
        public string Title
        {
            get { return (string)GetValue(TitleProperty); }
            set { SetValue(TitleProperty, value); }
        }

        /// <summary>
        /// Gets or sets the scrum data.
        /// </summary>
        /// <value>The scrum data.</value>
        public ScrumViewModelData ScrumData { get; set; }

        #endregion

        #endregion

        /// <summary>
        /// Initializes a new instance of the <see cref="CurrentProjectIterationControl"/> class.
        /// </summary>
        public CurrentProjectIterationControl()
        {
            if (!System.ComponentModel.DesignerProperties.GetIsInDesignMode(this))
            {
                ScrumData = ((AppScreen)Application.Current.MainWindow).GetUnityContainer().Resolve<ScrumViewModelData>();
                DataContext = this;
                InitializeComponent();
            }
        }
    }
}
